package edu.spec.wfl.week02.class2;

import java.util.Scanner;
public class Hanshu{
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        double x= s.nextDouble();
        double y;
        if(x<1){
            System.out.println("y="+x);
        }
        else if(x>=10){
            System.out.println("y="+4*x);
        }
        else {
            System.out.println("y="+(3*x-2));
        }
    }
}